﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace BloodThirsty
{
    public class Menu : Dialog
    {
        static int i =0;
        private Texture2D _Texture;

        public Texture2D Texture
        {
            get { return _Texture; }
            set { _Texture = value; }
        }


        
      
        private double _Left;

        public double Left
        {
            get { return _Left; }
            set { _Left = value; }
        }
        private double _Top;

        public double Top
        {
            get { return _Top; }
            set { _Top = value; }
        }


        public Menu(Texture2D texture, double left, double top)
        {
            Texture = texture;
            Left = left;
            Top = top;
        }
        public int DaThucHienXong()
        {
            if (Top >= 0)
            {
                return 1;
            }
            else
            {
                return 0;
            }
        }
        public void Update(GameTime gametime)
        {
            if (Top <= 0)
            {
                Top = Top + i;
                i = i + 1;

            }
            else 
            {
                Top = Top;
            }

        }

        public void Draw(GameTime gametime, SpriteBatch spriteBatch)
        {
            
            spriteBatch.Draw(Texture, new Vector2((float)Left, (float)Top), Color.White);
           
        }


    }
}
